/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.demo.repository.tdengine.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import info.peigen.hotpot.component.data.repository.beetlsql.entity.AbstractCreateTimeEntity;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import org.beetl.sql.annotation.entity.Column;
import org.beetl.sql.annotation.entity.Table;

/**
 * <b>(DogSuperEntity)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2022/8/1
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
@Table(name = "dog")
public class DogEntity extends AbstractCreateTimeEntity {
    @JSONField(ordinal = 1)
    @Column("name")
    String name;

    @JSONField(ordinal = 2)
    @Column("age")
    Integer age;
}